package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.LuckUser;
import com.yami.shop.dao.LuckUserMapper;
import com.yami.shop.service.LuckUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LuckUserServiceImpl extends ServiceImpl<LuckUserMapper,LuckUser> implements LuckUserService {
    @Autowired
    private LuckUserMapper luckUserMapper;

    @Override
    public LuckUser queryOne(LuckUser luckUser){
        return luckUserMapper.queryOne(luckUser);
    }

    @Override
    public LuckUser getLuckData(Long  shopId) {
        return luckUserMapper.getLuckData(shopId);
    }

    @Override
    public int saveLuck(LuckUser luckUser){
        return luckUserMapper.insert(luckUser);
    }
}
